import React, { FC } from 'react';
import './index.css';

export interface BankTitleProps {
  title?: string;
}

export const BankTitle: FC<BankTitleProps> = (props) => {
  const { title = "标题 title" } = props;
  return (
    <div className='bank-view-title'>
      {title}
    </div>
  )
}

export interface BankOutViewProps extends BankTitleProps {
  children?: React.ReactNode;
  className?: string;
}

export const BankOutView: FC<BankOutViewProps> = (props) => {
  const { children, title } = props;

  return (
    <div className='bank-out-view'>
      <BankTitle title={title} />
      <div>
        {children}
      </div>
    </div>
  )
}

export default BankOutView;